package Bidostar_Case;

import Bidostar_Data.Baseinfo;
import Bidostar_Page.AccountPage;
import org.testng.annotations.Test;

public class AccountCase extends Baseinfo
{
    @Test(priority = 1)
    public void AccountTest_URL1() throws Exception
    {
        PublicLogin_ByChromeCase pc = new PublicLogin_ByChromeCase();

        if (pc.LoginCase_ByChrome_URL1())
        {
            AccountPage ap = new AccountPage(pc.driver);

            ap.AccountTest();
        } else
        {
            logger.info("case执行失败");
        }


        pc.driver.close();
    }

    @Test(priority = 2)
    public void AccountTest_URL2() throws Exception
    {
        PublicLogin_ByChromeCase pc = new PublicLogin_ByChromeCase();
        pc.LoginCase_ByChrome_URL2();

        AccountPage ap = new AccountPage(pc.driver);

        ap.AccountTest();

        pc.driver.close();
    }

    @Test(priority = 3)
    public void AccountTest_URL3() throws Exception
    {
        PublicLogin_ByChromeCase pc = new PublicLogin_ByChromeCase();
        pc.LoginCase_ByChrome_URL3();

        AccountPage ap = new AccountPage(pc.driver);

        ap.AccountTest();

        pc.driver.quit();
    }
}
